package com.asia5b.a5mall.shop.fragment

import android.view.View
import com.asia5b.a5mall.middleware.model.base.BaseModel
import com.chad.library.adapter.base.entity.MultiItemEntity

/**
 * Created by zhangyuncai on 2020/6/29.
 */
class ApplyStepBean constructor(
        var name: String = "",//前面的名称
        var hint: String = "",//EditText中的hint
        var toast: String = "",//如果value为空的提示语
        var value: String = "",//EditText中的值
        var type: Int = 0,//视图类型
        var hongxing: Boolean = true//是否显示红星
) : BaseModel(), MultiItemEntity {
    var onClickListener: View.OnClickListener? = null
    var deleteImgOnClickListener: View.OnClickListener? = null
    var fuzhiOnClickListener: View.OnClickListener? = null//主动给上传的参数赋值
    var index: Int = 0//该item的角标

    companion object {
        const val title = 10
        const val edittext = 20
        const val button = 30
        const val upload_img = 40
        const val select = 50
    }

    override val itemType: Int
        get() = type


    override fun toString(): String {
        return "ApplyStepBean(name='$name', hint='$hint', value='$value', type=$type)"
    }
}